
from selenium.webdriver.common.by import By
from pages.base_page import BasePage
class CluePoolPage(BasePage):
    """线索池页面类"""
    click_random_get_locator = (By.LINK_TEXT,'领取')
    click_get_tips_locator=(By.CSS_SELECTOR,'body > div.container > div.alert.alert-success')
    def click_random_get(self):
        """点击任意领取"""
        self.driver.find_element(*self.click_random_get_locator).click()

    def click_get_tips(self):
        """#断言线索领取成功"""
        get_tips=self.driver.find_element(*self.click_get_tips_locator).text
        return get_tips
